<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>상품 디테일 리스트</title>
<script type="text/javascript">
	
	function deleteDo(){
		/* if(confirm("등록한 상품을 지웁니다.!!")){ */
			location.href="prodelete.do?p_code="+${board.p_code};
			response.Redirect("prolist.do");
	/* 	}else{
			alert("취소 되었습니다."); */
	}

</script>
</head>
<body>
<table width="900" border="1">
	<tr>
		<td>상품 이름  : ${board.p_name}</td><td>상품 코드 : ${board.p_code}</td><td> 카테고리 : ${board.p_category}</td><td><font color=red>${board.p_valid}</font></td>
	</tr>
	<tr height="300">
		<td>내 용</td>
		<td colspan="3">${board.p_content}</td>
	</tr>
	<tr>
		<td> 상품 조횟수 : ${board.p_hit}</td><td> 상품 포인트 : ${board.p_point}</td><td> 상품 추가 포인트 : ${board.p_addpoint}</td>
		<td> 상품 옵션 : ${board.p_option}</td>
	</tr>
	<tr>
		<td> 상품 수량${board.p_amount}</td><td> 상품 유효 여부 : ${board.p_valid}</td><td> 상품 가격 : ${board.p_price}</td><td>${board.p_date}</td>
	</tr>
	<tr>
		<td> 남은 시간 : ${board.p_time}</td><td> 구매자  :${board.p_buynum}</td><td colspan="2"> 추천 : ${board.p_best}</td>
	</tr>
	<tr>
<td><a href="javascript:window.open('../adminproductupload/${board.p_previewimage1}','프리뷰 사진 정보1','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_previewimage1}</a></td>
<td><a href="javascript:window.open('../adminproductupload/${board.p_previewimage2}','프리뷰 사진 정보2','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_previewimage2}</a></td> 
<td colspan="2"><a href="javascript:window.open('../adminproductupload/${board.p_previewimage3}','프리뷰 사진정보3','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_previewimage3}</a></td>
	</tr>
	<tr>	 
<td><a href="javascript:window.open('../adminproductupload/${board.p_productimage1}','제품 사진 정보1','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_productimage1}</a></td> 
<td><a href="javascript:window.open('../adminproductupload/${board.p_productimage2}','제품 사진 정보2','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_productimage2}</a></td>
<td colspan="2"><a href="javascript:window.open('../adminproductupload/${board.p_productimage3}','제품 사진 정보3','scrollbars=no, width=550, height=550, resizable=yes, menubar=no, top=150, left=260')"> ${board.p_productimage3}</a></td>
	</tr>
	<tr>
		<td colspan="4" align="right">
		<input type="button" value="목록" onclick="location.href='prolist.do'"> 
		<input type="button" value="삭제" onclick="deleteDo()"> 
		<input type="button" value="수정" onclick="location.href='modify.do?p_code=${board.p_code}'"></td>
	</tr>
</table>
</body>
</html>